6. r_trig & f_trig instruction

你好。
Hello.

在本教程中,我们将学习“trick or treat”。
In this tutorial, we will learn if trick or treat.

这意味着上升或下降英寸块的使用量。
That means rising or falling inch blocks usage.

让我们点击任意地方。
Let's click anywhere.

我们来写一个触发器。
Let's write a trigger.

好的。
OK.

这将是可变的。
And this is going to be variable.

没关系。
That's OK.

而且,我将在这里使用触发器。
And also, I will use here are trigger.

好的。
OK.

然后我们需要什么?
And then what we need?

我们需要一个时钟脉冲。
We need a clock pulse.

例如,如果我说 LDA,抱歉,例如一千。
Like, for example, if I say LDA and sorry, a thousand, for example.

嗯,13。
Um, 13.

好的,这就是我们现在要讲的,一秒时钟脉冲。
OK, this is what let's go to here, one second clock pulse.

我只是来到这里然后离开,但我会说我是零一。
I will just come to here and out, but I will say I am zero one.

该功能于 2013 年 5 月激活。
This is activated as I May 2013 on.

它将给出一个时钟脉冲,M0 将处于活动状态,我将写入您的 CTU。
It will give a clock pulse and M0 will be active and just I will write your CTU.

这将是我的帐户输入和这个值。
And this is going to be my account input and this value.

我就这样说,好吗?
I will just say like that, OK?

我会再说一遍这并不重要。
And I'll put it doesn't matter again.

我会复制这个。
I will copy this.

想听听分析师对此的时钟脉冲吗?
Want to hear the analyst give to this to clock pulse?

而输出,我们不能再次复制这个计数器,或者我们可以将它添加到这里。
And the output, we can't copy this counter again, or we can add it to here.

Q,这将成为顶部,这将出现九九九。
Q and this will become top, and this is going to be present for like nine nine nine.

好的,棒极了。
OK, very good.

我准备好了。
I'm ready.

只是我们会看到。
Just we will see.

会不会暂停一下?
Will it give a pause?

暂停一下,好吗?
Just one pause, OK?

它会给出,你会看到零将被激活,一秒钟只有一个脉冲。
And it will give and you will see and zero is going to be activated, just one pulse one second time.

但这只会发生在30号上。
But this is going to be on just 30.

这又是一次。
This is once again.

所以这意味着 500 毫秒的时钟拼图上有 500 毫秒。
So that means 500 milliseconds on five hundred millisecond of clock puzzle.

好的,或者我们就在这里。
OK, or we can just right here.

这已经过去一分钟了,这对我来说没问题。
This one is one minute clock past, this is OK for me.

我将转换我的项目。
I will convert my project.

让我们重建所有内容,现在正在转换一个项目。
Let's rebuild all and it's converting a project now.

我们去模拟器吧。
Let's go to simulator.

我已经准备好了,你会看到一个时钟过去了,而且这个数字正在一一递增。
And I'm ready, you will see this a clock pass, and this is incrementing one by one.

好的。
OK.

同样在这一点上,时钟暂停了一分钟。
And also at this point, this is one minute clock pause because of that.

这是 30 秒,其中 30 秒将开启,但 M0 将处于活动状态。
This is 30 seconds on 30 second of it will be on, but M0 will be active.

只是停顿一下。
Just one pause.

好的,我们只是在计时,然后这个输出会暂停一下。
OK, here just we are clocking and then this output giving a one pause.

好的。
OK.

当它处于活动状态时,我们可以看到是否将其放在这里,例如,我们可以在这里看到,这是活动的。
While this is active, we can see if we put here, for example, we can see in here, this is active.

这是真实的。
This is true.

好吧,但这是错误的。
OK, but this is false.

不,这通常是激活的,只需一个脉冲。
No, this is normally activated, just one pulse.

但因为触发条件就在这里。
But because of the trigger condition is here.

所以这也一定是真的。
So this must be true too.

关闭状态。
Off condition.

30秒后确实如此,几乎20秒后,我们会因为以下年龄而看到两两个关闭情况。
This is true 30 seconds later, almost 20 seconds later, we will see two or two off condition because of the following age.

这将是 M0 将被激活,只有一个脉冲。
This will be M0 will be active, just one pulse.

这个数据将是一个。
And this data will be one.

但崛起就是其中之一。
But here rising is one.

这是开启的。
This is on.

你可以看到这是假的。
You can see this is false.

这是一。
This is one.

为什么?
Why?

因为这个被激活了,只是一个脉冲。
Because this was activated, just one pulse.

该下降沿的每条指令仅向右侧提供一个脉冲激活。
This falling each instruction is gave just one pulse activation to the right side.

没关系。
That's OK.

好的。
OK.

这就是我们可以如何使用 if 触发器或触发器指令。
This is we can use how we can use if trigger or trigger instructions.

我们已经在小图表和一些讲座中学习了它们,但我们为什么需要这个并不重要。
We already learned them all in the little diagram and in a few, I guess, lecture, but doesn't matter why we need this.

例如,只有一个脉冲。
For example, just one pulse.

我们需要一个输出到您的项目中,只需一个触发器即可线圈。
We need an output into your project, just one trigger to coil.

您需要使用向上或向下指令或上升沿或跟随年龄指令。
You need to use up or down instruction or rising edge or following age instructions.

这就是本教程的全部内容。
That's all for this tutorial.

我完成了。
I finished it.

而在结束之前,这个故事让我们再看一遍,这是真的。
And before the close, this story of Let's see it again, this is true.

当这达到真实条件时,您将看到这将是一个活跃的脉冲,而这将是两个。
When this goes to true to of condition, you will see this will be active one pulse and this will be two.

让我们再等一下。
Let's wait a little bit more.

然后确定,你看不到它,因为为什么。
Then to OK, you cannot see it because of why.

因为放置的周期时间非常长,因此。
Because the cycle time of the placein are so high, because of that.

好的。
OK.

陆地见。
See you in terrestrial.